#ifndef _UFO_PLATFORM_FILESYSTEM_H_
#define _UFO_PLATFORM_FILESYSTEM_H_

#if defined(ANDROID)

#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
typedef AAsset* HFILE;

#else

#include <stdio.h>
typedef FILE* HFILE;

#endif

HFILE ufoFileOpen(const char* filename, char* mode);

int ufoFileClose(HFILE file);

int ufoFileRead(HFILE file, void* buffer, int size, int count);

int ufoFileSeek(HFILE file, int offset, int origin);//### offset is same with C API

int ufoFileTell(HFILE file);

#endif